package net.huashitong.ssydt.pk.entity.vo;

import io.swagger.annotations.ApiModelProperty;
import net.huashitong.ssydt.pk.entity.SsPkYmdxMedalRank;
import net.huashitong.ssydt.pk.entity.SsPkYzddMedalRank;
import net.huashitong.ssydt.user.entity.vo.SimpleUserVO;

import java.io.Serializable;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.12.20
 */
public class MedalVO implements Serializable {

    private static final long serialVersionUID = 5584663005955807362L;
    @ApiModelProperty(value = "id")
    private Long id;//
    @ApiModelProperty(value = "用户信息")
    private SimpleUserVO user;
    @ApiModelProperty("金牌数")
    private Integer goldMedal;//金牌数
    @ApiModelProperty("银牌数")
    private Integer silverMedal;//银牌数
    @ApiModelProperty("铜牌数")
    private Integer bronzeMedal;//铜牌数
    @ApiModelProperty("排名")
    private Integer ranking;//排名

    public MedalVO(SsPkYmdxMedalRank ssPkYmdxMedalRank) {
        this.id = ssPkYmdxMedalRank.getId();
        this.goldMedal = ssPkYmdxMedalRank.getGoldMedal();
        this.silverMedal = ssPkYmdxMedalRank.getSilverMedal();
        this.bronzeMedal = ssPkYmdxMedalRank.getBronzeMedal();
        this.ranking = ssPkYmdxMedalRank.getRanking();
    }

    public MedalVO(SsPkYzddMedalRank ssPkYzddMedalRank) {
        this.id = ssPkYzddMedalRank.getId();
        this.goldMedal = ssPkYzddMedalRank.getGoldMedal();
        this.silverMedal = ssPkYzddMedalRank.getSilverMedal();
        this.bronzeMedal = ssPkYzddMedalRank.getBronzeMedal();
        this.ranking = ssPkYzddMedalRank.getRanking();
    }


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public SimpleUserVO getUser() {
        return user;
    }

    public void setUser(SimpleUserVO user) {
        this.user = user;
    }

    public Integer getGoldMedal() {
        return goldMedal;
    }

    public void setGoldMedal(Integer goldMedal) {
        this.goldMedal = goldMedal;
    }

    public Integer getSilverMedal() {
        return silverMedal;
    }

    public void setSilverMedal(Integer silverMedal) {
        this.silverMedal = silverMedal;
    }

    public Integer getBronzeMedal() {
        return bronzeMedal;
    }

    public void setBronzeMedal(Integer bronzeMedal) {
        this.bronzeMedal = bronzeMedal;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }
}
